home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
051-075
/
scopedisk56
/
atoday73
/
makescript
< prev
Wrap
Text File
|
1995-03-19
|
833b
|
33 lines
;This file is a supplement to an article in Issue 7-3 of Amy Today
.key filename
.DEF filename "ram:temp"
if exists <filename>
ask "File exists. Replace it? (Y or N, RETURN=N)"
; get response from keyboard, Y=WARN=5, N=0
if WARN
;response was Yes, replace file
; resume execution after ENDIF
ELSE
;response was No (or RETURN)
; We could omit this ELSE section and fall through to the ENDIF, but
;I wanted the example!
echo "Try another name"
QUIT 5
;quit with error code, since script not written
ENDIF
ENDIF
echo "End console input with ctrl-\ ."
copy * to <filename>
;change above line to 'type to <filename>' for ARP use !
protect <filename> +s
copy s:makescript.icon to <filename>.info
;copies icon to execute script from WB using iconx
;everything ok
QUIT 0